package com.igeek.shop.service.pro;

import java.util.List;
import java.util.Map;

import com.igeek.shop.entity.Cart;
import com.igeek.shop.entity.Category;
import com.igeek.shop.entity.Order;
import com.igeek.shop.entity.PageBean;
import com.igeek.shop.entity.Product;
import com.igeek.shop.entity.User;

public interface ProductService {
	 List<Product> getProductList();
	 List<Product> findHotProductList();
	 List<Product> findNewProductList();
	 List<Category> findCategoryList();
	 List<Product> getProductListByLimit(PageBean pageBean);
	 PageBean getPageBean(int i);
	 List<Category> getCategoryList();
	 long getProductNumberByCid(String cid);
	 PageBean getPageBeanByCategory(int currentPageNumber, int pageSize, long totalDataNumber,String cid);
	 Product getProductByPid(String pid);
	 Category getCategoryByCid(String cid);
	 void submitOrders(Order order);
	 void updateOrderInfo(Order order);
	 void updateOrderState(String r6_Order);
	 List<Order> getOrdersList(User user);
	 List<Map<String, Object>> getOrderItemList( Order order);
	 List<Order> getAllOrders();
	 PageBean searchProduct(String productName,int currentPageNumber);
	
}
